#include "line.h"
#include <QDesktopWidget>
#include <QApplication>
#include <iostream>
using namespace std;


void center(QWidget &widget)
{
  int x, y;
  int screenWidth;
  int screenHeight;

  int WIDTH = 400;
  int HEIGHT = 400;


  QDesktopWidget *desktop = QApplication::desktop();

  screenWidth = desktop->width();
  screenHeight = desktop->height();

  x = (screenWidth - WIDTH) / 2;
  y = (screenHeight - HEIGHT) / 2;

  widget.setGeometry(x, y, WIDTH, HEIGHT);
}


int main(int argc, char *argv[])
{

	QApplication app(argc, argv);  


	int num_polygons;
	int num_vertices;
	cin >> num_polygons;

	Lines window;	
	for (int i = 0; i < num_polygons ; ++i)
	{
		vector <double> v ; 
		cin >> num_vertices; 
		for (int j = 0; j < num_vertices * 2; ++j)
		{
			double num; 
			cin>> num; 
			v.push_back(num) ;
		}
		window.polygons.push_back (v);
	}
	
	




  window.setWindowTitle("Lines");
  window.show();
  center(window);

  return app.exec();
}
